package edu.ustb.mis.dm.simpleTest;

import java.util.List;
import edu.ustb.mis.dm.Constants;
import edu.ustb.mis.dm.impl.algorithm.STextOutputCABOSFV;
import edu.ustb.mis.dm.interfaces.algorithm.ClusterAlgorithm;
import edu.ustb.mis.dm.model.ClusterResult;
import edu.ustb.mis.dm.util.Utils;

public class CABOSFV_S2 {
	/**
	 * @param args
	 */
	public static void main(final String[] args) {
		boolean flag = true;
		while (flag) {
			@SuppressWarnings("unchecked")
			final ClusterAlgorithm<ClusterResult> cabosfv = new STextOutputCABOSFV((List<ClusterResult>)Utils.deserialization(Constants.S_PATH));
			//cabosfv.setThreshhold(0.12);
			cabosfv.setThreshhold(0.2);
			cabosfv.execute();
			System.out.print(cabosfv.getResultList().size());
			if (cabosfv.getResultList().size() == 2) {
				flag = false;
				System.out.println("over");
			}
		}
	}
}
